<?php
	
?>
<h2 class="ps_title"><span class="ps_icon_1"></span>Tìm phim</h2>
<form id="search_form" name="search_form" method="post"  action="index.php">
<table>
    <tbody>
    <tr>
        <td width="70"><label for="search_keyword">Từ khóa</label></td>
        <td>
        	<div class="input_search">
        		<input type="text" id="search_keyword" name="keyword" value="">
            </div>
        </td>
    </tr>
    <tr>
        <td><label for="search_series">Loại phim</label></td>
        <td><select id="search_series" name="series">
                <option value="0">Bất kỳ</option>
                <?php $lebo = mysql_fetch_array($load)?>
                <option value="<?php echo $lebo['maloai']?>"><?php echo $lebo['tenloai']?></option>
                <?php $lebo = mysql_fetch_array($load)?>
                <option value="<?php echo $lebo['maloai']?>"><?php echo $lebo['tenloai']?></option>
       		</select>
        </td>
    </tr>
    <tr>
        <td><label for="search_category">Thể loại</label></td>
        <td><select id="search_category" name="category">
        <option value="0">Bất kỳ</option>
        <?php 
		$s_theloai=mysql_query("select * from theloai");
		while($s_tl = mysql_fetch_array($s_theloai))
		{?>
        <option value="<?php echo $s_tl['matheloai']?>"><?php echo $s_tl['tentheloai']?></option>
  		<?php }?>
        </select></td>
    </tr>
    <tr>
        <td><label for="search_country">Quốc gia</label></td>
        <td><select id="search_country" name="country">
        <option value="0">Bất kỳ</option>
        <?Php 
		$s_country=mysql_query("select * from quocgia");
        while($s_ct = mysql_fetch_array($s_country))
		{?>
        <option value="<?php echo $s_ct['maquocgia']?>"><?php echo $s_ct['tenquocgia']?></option>
  		<?php }?>
        </select></td>
    </tr>
    <tr>
        <td><label for="search_translation">Chuyển ngữ</label></td>
        <td><select id="search_translation" name="translation">
        <option value="0">Bất kỳ</option>
        <?Php 
		$s_trans=mysql_query("select * from chuyenngu");
        while($s_t = mysql_fetch_array($s_trans))
		{?>
        <option value="<?php echo $s_t['machuyenngu']?>"><?php echo $s_t['tenchuyenngu']?></option>
  		<?php }?>
        </select>
        </td>
    </tr>
    <tr>
        <td><label for="search_quality">Chất lượng</label></td>
        <td><select id="search_quality" name="quality">
        <option value="0">Bất kỳ</option>
        <?Php 
		$s_quality=mysql_query("select * from chatluong");
        while($s_q = mysql_fetch_array($s_quality))
		{?>
        <option value="<?php echo $s_q['machatluong']?>"><?php echo $s_q['tenchatluong']?></option>
  		<?php }?>
        </select></td>
    </tr>
    <tr>
        <td><label for="search_sort">Sắp xếp</label></td>
        <td>
        <select id="search_sort" name="sort">
        <option value="1">Phim mới đăng</option>
        <option value="2">Phim xem nhiều</option>
        </select>
        </td>
    </tr>
    <tr>
    	<td colspan="2" align="center"><input type="submit" name="search_form_submit" class="button button_14px" value="Tìm kiếm" id="search_form_submit"></td>
    </tr>
    </tbody>
</table>
</form>
<br>
<a href="http://vn.muahangmy.com/home.html"><img src="img/Half-page_ad.jpg" style="width:266px"/></a>